package com.yjxxt.dao;

import com.yjxxt.vo.Salgrade;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

public interface SalgradeDao {
    int deleteByPrimaryKey(Integer grade);

    int insert(Salgrade record);

    int insertSelective(Salgrade record);

    Salgrade selectByPrimaryKey(Integer grade);

    int updateByPrimaryKeySelective(Salgrade record);

    int updateByPrimaryKey(Salgrade record);

    @Delete("delete from salgrade where grade = #{grade}")

    int deleteByGrade(Integer grade);

    @Insert("insert into salgrade (grade, losal, hisal) values (#{grade}, #{losal}, #{hisal})")
    int insertSalgrade(Salgrade salgrade);


}